package com.mentaleye.biz;

import com.mentaleye.bean.DictionaryBean;
import com.mentaleye.dal.model.Dictionary;
import com.mentaleye.util.CommonPage;

import java.util.List;
import java.util.Map;

public interface DictionaryBiz {

    public boolean editDictionary(DictionaryBean dictionary);

    public Map<Integer,String> queryDictionaryByParent(Integer parent);

    public   Map<Integer,Map<Integer, String>>   queryDictionaryWithChildren();

    public void queryDictionaryByPage(CommonPage commonPage);

    public boolean deleteDictionary(Integer ids);

    public List<DictionaryBean> queryAllDictionary();
    
    List<Dictionary> getListByParent(int parentId);
    
    List<Dictionary> queryDictionaryByIds(List<Integer> idList);
    
    Dictionary getDataById(int key);
}